<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_sn')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_sn" data-rule="required" readonly class="form-control" name="row[order_sn]" type="text"
                   value="{$row.order_sn|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">签约时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cycletime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss"
                   data-use-current="true" readonly type="text" value="{:$row.cycletime?datetime($row.cycletime):''}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">用户名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-username" class="form-control" readonly
                   value="{$row.user.username|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">猫咪名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cat_name" class="form-control" readonly
                   value="{$row.cat.name|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">猫咪编号:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cat_code" class="form-control" readonly type="number"
                   value="{$row.cat_code|htmlentities}">
        </div>
    </div>

    <div class="form-group col-xs-12 col-sm-12">
        <label class="control-label col-xs-12 col-sm-2">猫咪图片:</label>
        <div class="col-xs-12 col-sm-8" style="margin-top:7px;">
            <ul class="row list-inline faupload-preview" id="p-images" data-listidx="0">
                <li class="col-xs-3">
                    <a href="{:cdnurl($row.image,true)}" data-url="{:cdnurl($row.image,true)}" target="_blank" class="thumbnail">
                        <img src="{:cdnurl($row.image,true)}"
                             onerror="this.src='/nVG76keHGu.php/ajax/icon?suffix=jpg';this.onerror=null;"
                             class="img-responsive">
                    </a>
                </li>
            </ul>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">品种:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cat_breed" class="form-control" readonly
                   value="{$row.breed_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Total_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-total_amount" data-rule="required" class="form-control" step="0.01" name="row[total_amount]"
                   type="number" readonly value="{$row.total_amount|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Score_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-score_amount" readonly data-rule="required" class="form-control" name="row[score_amount]"
                   type="number"
                   value="{$row.score_amount|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Overdue_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-overdue_num" class="form-control" readonly name="row[overdue_num]" type="number"
                   value="{$row.overdue_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remaining_cycle')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remaining_cycle" class="form-control" readonly name="row[remaining_cycle]" type="text"
                   value="{$row.remaining_cycle|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Month_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-month_money" class="form-control" readonly name="row[month_money]" type="text"
                   value="{$row.month_money|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Total_cycle')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-total_cycle" class="form-control" readonly name="row[total_cycle]" type="text"
                   value="{$row.total_cycle|htmlentities}">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" class="form-control" name="row[address]" type="text"
                   value="{$row.address|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('收货人')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-consignee" class="form-control" name="row[consignee]" type="text"
                   value="{$row.consignee|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('收货人手机号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-phone" class="form-control" name="row[phone]" type="text"
                   value="{$row.phone|htmlentities}">
        </div>
    </div>

    <!--    <div class="form-group">-->
    <!--        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>-->
    <!--        <div class="col-xs-12 col-sm-8">-->

    <!--            <div class="radio">-->
    <!--                {foreach name="statusList" item="vo"}-->
    <!--                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio"-->
    <!--                                                       value="{$key}" {in name="key" value="$row.status" }checked{/in}-->
    <!--                    /> {$vo}</label>-->
    <!--                {/foreach}-->
    <!--            </div>-->

    <!--        </div>-->
    <!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remark" readonly class="form-control" name="row[remark]" type="text"
                   value="{$row.remark|htmlentities}">
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
